TEMPLATE      = lib
CONFIG       += qt plugin warn_off
QT += opengl
DEFINES	 	 += NO_HASHMAP

INCLUDEPATH  += ../..
HEADERS       = dctreecontrol.h  mactdisplay.h  macttoolsplugin.h  matchcontrol.h
SOURCES       = dctreecontrol.cpp  mactdisplay.cpp  macttoolsplugin.cpp  matchcontrol.cpp
FORMS		  = dctreecontrol.ui  mactdisplay.ui  matchcontrol.ui

TARGET        = $$qtLibraryTarget(macttools)
DESTDIR       = ../../../plugins

unix:LIBS 	 += -L../../datamanager -ldatamanager -L../../contree -lcontree \ 
				-L../../data -ldata -L../../math -lmath -L../../renderer -lrenderer \
				../../mact/libmact.a
INCLUDEPATH += ../../contrib/glut

macx {
	INCLUDEPATH += ../contrib/macx/glew/include
	DEFINES += MACX_DEV __GNU__
}
	
linux {
	INCLUDEPATH += /home/xyzhang/src/glut-3.7/include/GL ../../contrib/linux/glew/include
	DEFINES += __GNU__
	}
	
# install
# target.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaint/plugins
# sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS extrafilters.pro
# sources.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaintplugins/extrafilters
# INSTALLS += target sources